package com.jk.bguser.controller;

import com.jk.bguser.service.TickerService;
import com.jk.damaicommon.entity.TicketEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @描述
 * @参数 $
 * @返回值 $
 * @创建人 lgf
 * @创建时间 $
 * @修改人和其它信息
 */
@RestController
@RequestMapping("ticket")
public class TicketController {
    @Autowired
    private TickerService tickerService;

    @RequestMapping("couponList")
    public Object couponList(){
        return tickerService.couponList();
    }

    @RequestMapping("add")
    public  void add(@RequestBody TicketEntity ti){
        tickerService.add(ti);
    }
    //删除优惠券
    @RequestMapping("deleteCoupon")
    public void deleteCoupon(Integer id){
        tickerService.deleteCoupon(id);
    }







}
